#!/usr/bin/env python

import wx

keyMap = {
     "BACK":wx.WXK_BACK ,
     "TAB":wx.WXK_TAB ,
     "RETURN":wx.WXK_RETURN ,
     "ESCAPE":wx.WXK_ESCAPE ,
     "SPACE":wx.WXK_SPACE ,
     "DELETE":wx.WXK_DELETE ,
     "START":wx.WXK_START ,
     "LBUTTON":wx.WXK_LBUTTON ,
     "RBUTTON":wx.WXK_RBUTTON ,
     "CANCEL":wx.WXK_CANCEL ,
     "MBUTTON":wx.WXK_MBUTTON ,
     "CLEAR":wx.WXK_CLEAR ,
     "SHIFT":wx.WXK_SHIFT ,
     "ALT":wx.WXK_ALT ,
     "CONTROL":wx.WXK_CONTROL ,
     "MENU":wx.WXK_MENU ,
     "PAUSE":wx.WXK_PAUSE ,
     "CAPITAL":wx.WXK_CAPITAL ,
    # "PRIOR":wx.WXK_PRIOR ,
    # "NEXT":wx.WXK_NEXT ,
     "END":wx.WXK_END ,
     "HOME":wx.WXK_HOME ,
     "LEFT":wx.WXK_LEFT ,
     "UP":wx.WXK_UP ,
     "RIGHT":wx.WXK_RIGHT ,
     "DOWN":wx.WXK_DOWN ,
     "SELECT":wx.WXK_SELECT ,
     "PRINT":wx.WXK_PRINT ,
     "EXECUTE":wx.WXK_EXECUTE ,
     "SNAPSHOT":wx.WXK_SNAPSHOT ,
     "INSERT":wx.WXK_INSERT ,
     "HELP":wx.WXK_HELP ,
     "NUMPAD0":wx.WXK_NUMPAD0 ,
     "NUMPAD1":wx.WXK_NUMPAD1 ,
     "NUMPAD2":wx.WXK_NUMPAD2 ,
     "NUMPAD3":wx.WXK_NUMPAD3 ,
     "NUMPAD4":wx.WXK_NUMPAD4 ,
     "NUMPAD5":wx.WXK_NUMPAD5 ,
     "NUMPAD6":wx.WXK_NUMPAD6 ,
     "NUMPAD7":wx.WXK_NUMPAD7 ,
     "NUMPAD8":wx.WXK_NUMPAD8 ,
     "NUMPAD9":wx.WXK_NUMPAD9 ,
     "MULTIPLY":wx.WXK_MULTIPLY ,
     "ADD":wx.WXK_ADD ,
     "SEPARATOR":wx.WXK_SEPARATOR ,
     "SUBTRACT":wx.WXK_SUBTRACT ,
     "DECIMAL":wx.WXK_DECIMAL ,
     "DIVIDE":wx.WXK_DIVIDE ,
     "F1":wx.WXK_F1 ,
     "F2":wx.WXK_F2 ,
     "F3":wx.WXK_F3 ,
     "F4":wx.WXK_F4 ,
     "F5":wx.WXK_F5 ,
     "F6":wx.WXK_F6 ,
     "F7":wx.WXK_F7 ,
     "F8":wx.WXK_F8 ,
     "F9":wx.WXK_F9 ,
     "F10":wx.WXK_F10 ,
     "F11":wx.WXK_F11 ,
     "F12":wx.WXK_F12 ,
     "F13":wx.WXK_F13 ,
     "F14":wx.WXK_F14 ,
     "F15":wx.WXK_F15 ,
     "F16":wx.WXK_F16 ,
     "F17":wx.WXK_F17 ,
     "F18":wx.WXK_F18 ,
     "F19":wx.WXK_F19 ,
     "F20":wx.WXK_F20 ,
     "F21":wx.WXK_F21 ,
     "F22":wx.WXK_F22 ,
     "F23":wx.WXK_F23 ,
     "F24":wx.WXK_F24 ,
     "NUMLOCK":wx.WXK_NUMLOCK ,
     "SCROLL":wx.WXK_SCROLL ,
     "PAGEUP":wx.WXK_PAGEUP ,
     "PAGEDOWN":wx.WXK_PAGEDOWN ,
     "NUMPAD_SPACE":wx.WXK_NUMPAD_SPACE ,
     "NUMPAD_TAB":wx.WXK_NUMPAD_TAB ,
     "NUMPAD_ENTER":wx.WXK_NUMPAD_ENTER ,
     "NUMPAD_F1":wx.WXK_NUMPAD_F1 ,
     "NUMPAD_F2":wx.WXK_NUMPAD_F2 ,
     "NUMPAD_F3":wx.WXK_NUMPAD_F3 ,
     "NUMPAD_F4":wx.WXK_NUMPAD_F4 ,
     "NUMPAD_HOME":wx.WXK_NUMPAD_HOME ,
     "NUMPAD_LEFT":wx.WXK_NUMPAD_LEFT ,
     "NUMPAD_UP":wx.WXK_NUMPAD_UP ,
     "NUMPAD_RIGHT":wx.WXK_NUMPAD_RIGHT ,
     "NUMPAD_DOWN":wx.WXK_NUMPAD_DOWN ,
    # "NUMPAD_PRIOR":wx.WXK_NUMPAD_PRIOR ,
     "NUMPAD_PAGEUP":wx.WXK_NUMPAD_PAGEUP ,
    # "NUMPAD_NEXT":wx.WXK_NUMPAD_NEXT ,
     "NUMPAD_PAGEDOWN":wx.WXK_NUMPAD_PAGEDOWN ,
     "NUMPAD_END":wx.WXK_NUMPAD_END ,
     "NUMPAD_BEGIN":wx.WXK_NUMPAD_BEGIN ,
     "NUMPAD_INSERT":wx.WXK_NUMPAD_INSERT ,
     "NUMPAD_DELETE":wx.WXK_NUMPAD_DELETE ,
     "NUMPAD_EQUAL":wx.WXK_NUMPAD_EQUAL ,
     "NUMPAD_MULTIPLY":wx.WXK_NUMPAD_MULTIPLY ,
     "NUMPAD_ADD":wx.WXK_NUMPAD_ADD ,
     "NUMPAD_SEPARATOR":wx.WXK_NUMPAD_SEPARATOR ,
     "NUMPAD_SUBTRACT":wx.WXK_NUMPAD_SUBTRACT ,
     "NUMPAD_DECIMAL":wx.WXK_NUMPAD_DECIMAL ,
     "NUMPAD_DIVIDE":wx.WXK_NUMPAD_DIVIDE ,

     "WINDOWS_LEFT":wx.WXK_WINDOWS_LEFT ,
     "WINDOWS_RIGHT":wx.WXK_WINDOWS_RIGHT ,
     "WINDOWS_MENU":wx.WXK_WINDOWS_MENU ,

     "COMMAND":wx.WXK_COMMAND ,

     "SPECIAL1":wx.WXK_SPECIAL1 ,
     "SPECIAL2":wx.WXK_SPECIAL2 ,
     "SPECIAL3":wx.WXK_SPECIAL3 ,
     "SPECIAL4":wx.WXK_SPECIAL4 ,
     "SPECIAL5":wx.WXK_SPECIAL5 ,
     "SPECIAL6":wx.WXK_SPECIAL6 ,
     "SPECIAL7":wx.WXK_SPECIAL7 ,
     "SPECIAL8":wx.WXK_SPECIAL8 ,
     "SPECIAL9":wx.WXK_SPECIAL9 ,
     "SPECIAL10":wx.WXK_SPECIAL10 ,
     "SPECIAL11":wx.WXK_SPECIAL11 ,
     "SPECIAL12":wx.WXK_SPECIAL12 ,
     "SPECIAL13":wx.WXK_SPECIAL13 ,
     "SPECIAL14":wx.WXK_SPECIAL14 ,
     "SPECIAL15":wx.WXK_SPECIAL15 ,
     "SPECIAL16":wx.WXK_SPECIAL16 ,
     "SPECIAL17":wx.WXK_SPECIAL17 ,
     "SPECIAL18":wx.WXK_SPECIAL18 ,
     "SPECIAL19":wx.WXK_SPECIAL19 ,
     "SPECIAL2":wx.WXK_SPECIAL2 ,
}